package ontowebapp.reversestring.fc.lib;

import org.objectweb.fractal.fraclet.annotations.Component;
import org.objectweb.fractal.fraclet.annotations.Interface;

import ontocompo.fc.lib.Service;
import ontowebapp.reversestring.fc.api.ReverseItf;

@Component(provides = {@Interface(name = "reverseItf", signature = ontowebapp.reversestring.fc.api.ReverseItf.class), @Interface(name = "ontocompoIntrospectionItf", signature = ontocompo.api.IntrospectionItf.class)})
public class ReverseService extends Service implements ReverseItf {

	public ReverseService() {
		this.uid = "ontowebapp.reversestring.fc.lib.ReverseService";
	}
	
	@Override
	public String reverse(String textToReverse) {
		// TODO Auto-generated method stub
		return new StringBuffer(textToReverse).reverse().toString();
	}

}
